package com.woniuxy.lrz.carlproject.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.lrz.carlproject.controller.form.userform.AddOrderForm;
import com.woniuxy.lrz.carlproject.model.UserOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.lrz.carlproject.service.dto.orderDto.OrderDetailDTO;
import com.woniuxy.lrz.carlproject.service.dto.orderDto.UserOrderListDTO;

import java.util.List;

/**
 * <p>
 * 用户订单表 服务类
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
public interface UserOrderService extends IService<UserOrder> {

    Page<UserOrder> getOrderByShopId(int current,int size,int shopId);

    void updateOrderStatus(String userOrderNo,String status);

    String addOrder(AddOrderForm addOrderForm);

    void cancelOrder(String userOrderNo);

    void confirmOrder(String userOrderNo);

    List<UserOrderListDTO> getOrders();

    OrderDetailDTO getOrderDetail(String userOrderNo);
}
